﻿using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Web.Mvc;

namespace IdentitySample.Models
{
    public class RoleViewModel
    {
        public string Id { get; set; }
        [Required(AllowEmptyStrings = false)]
        [Display(Name = "RoleName")]
        public string Name { get; set; }
        [Display(Name = "描述")]
        public string Description { get; set; }
    }

    public class EditUserViewModel
    {
        public string Id { get; set; }

        [Required(AllowEmptyStrings = false)]
        [Display(Name = "邮件")]
        [EmailAddress]
        public string Email { get; set; }

        [Display(Name = "性别")]
        public string Gender { get; set; }
        [Display(Name = "年龄")]
        public int Age { get; set; }
        [Display(Name = "职称")]
        public string Duty { get; set; }
        [Display(Name = "工资")]
        public int Salary { get; set; }
        [Display(Name = "电话")]
        public string PhoneNumber { get; set; }

        public IEnumerable<SelectListItem> RolesList { get; set; }
    }
}